package cn.lsnu.modules.oa.entity;

import cn.lsnu.common.interfacetools.interfaceentity.BaseEntity;
import cn.lsnu.common.sys.entity.MenuEntity;

import java.util.List;

public class RoleEntity extends BaseEntity<RoleEntity> {

    private String userName;

    private String userCode;

    private List<MenuEntity> menus;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public List<MenuEntity> getMenus() {
        return menus;
    }

    public void setMenus(List<MenuEntity> menus) {
        this.menus = menus;
    }

    @Override
    public String toString() {
        return "RoleEntity{" +
                "userName='" + userName + '\'' +
                ", userCode='" + userCode + '\'' +
                "} " + super.toString();
    }
}
